package com.lingnan.tijian.service.impl;

import com.lingnan.tijian.dto.ApiResponse;
import com.lingnan.tijian.mapper.OverallresultMapper;
import com.lingnan.tijian.service.ifac.OverallResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OverallResultServiceImpl implements OverallResultService {

    @Autowired
    OverallresultMapper overallresultMapper;

    @Override
    public ApiResponse listOverallResultByOrderId(Integer orderId) {
        return new ApiResponse(ApiResponse.SUCCESS_STATUS,ApiResponse.SUCCESS_DESC,overallresultMapper.selectByOrderId(orderId));
    }
}
